TCL_CONFIG=c:\MinGw\lib\TclConfig.sh
#TCL_CONFIG=c:\Tcl\lib\TclConfig.sh
include $(TCL_CONFIG)

CFLAGS=-Wall -Wextra -Wno-strict-aliasing
CFLAGS+=-O3 -fomit-frame-pointer
CFLAGS+=-DUSE_TCL_STUBS=1 -DBUILD_F=1
CFLAGS+=-I$(TCL_PREFIX)/include/tcl-private/generic

OBJS=lazy.o

all: lazy$(TCL_SHLIB_SUFFIX)

lazy$(TCL_SHLIB_SUFFIX): $(OBJS)
		gcc -shared -fPIC -o $@ $^ $(TCL_STUB_LIB_PATH) 

.PHONY: clean

clean:
		$(RM) *.o
		$(RM) *.obj
		$(RM) *.dll
		$(RM) *.so
		$(RM) *.exp
		$(RM) *.lib
		$(RM) *.a

